package com.ljz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

@Data
@TableName(value = "attr")
public class Attr {

    @TableId(value = "attr_id",type = IdType.AUTO)
    Long attr_id;
    Long shop_id;
    String name;
    @TableField("`desc`")
    String desc;
    Integer search_type;
    Integer attr_type;

    @TableField(exist = false)
    List<AttrValue> attrValues;

}
